set(CMAKE_CXX_FLAGS "${CAMKE_CXX_FLAGS} -std=c++11 -pthread")

set(PPL_CV_INSTALL /home/mod/code/DL/SenseTime/ppl.cv/x64-build/install) 
set(PPL_CV_INC ${PPL_CV_INSTALL}/include)

macro(add_example name)
    add_executable(${name} ${name}.cpp)
    target_link_libraries(${name} PRIVATE ${PPL_CV_INSTALL}/lib/libpplcv_static.a ${PPL_CV_INSTALL}/lib/libpplcommon_static.a)
    target_include_directories(${name} PRIVATE ${PPL_CV_INC})
endmacro()


add_example(nv12ToBGR)
add_example(test_CpuSupports)
